<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:dataInput="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:controls="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:inputToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.WPFToolkit"
    xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    mc:Ignorable="d"
    d:DesignWidth="330" d:DesignHeight="600"
    xmlns:local="clr-namespace:Rage.Mercenary"
    xmlns:Rage="clr-namespace:Rage;assembly=Rage.Base.WPF"
    x:Class="Rage.Mercenary.CalculationOptionsPanelMercenary">

    <UserControl.Resources>
        <local:CalculationOptionsMercenary x:Key="CalculationOptionsMercenaryDataSource" d:IsDataSource="True"/>
        <local:PercentConverter x:Key="PercentConverter" />
        <local:EnumValuesConverter x:Key="enumConverter"/>
    </UserControl.Resources>


  <Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource CalculationOptionsMercenaryDataSource}}">
        <controls:TabControl x:Name="Tabs" TabStripPlacement="Top">
            <controls:TabItem x:Name="Page_00_Instructions" Header="Instructions">
                <Grid x:Name="Page_00_Layout">
                    <controls:TabControl x:Name="Tab_Instr" Margin="0">
                        <controls:TabItem x:Name="Tab_Welcome" Header="Basics">
                            <Grid x:Name="Tab_Welcome_Layout">
                                <TextBox x:Name="RTB_Welcome" Margin="3,0,3,3" IsReadOnly="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" Grid.ColumnSpan="4"/>
                            </Grid>
                        </controls:TabItem>
                        <controls:TabItem x:Name="Tab_Advanced" Header="Advanced">
                            <Grid x:Name="Tab_Advanced_Layout">
                                <TextBox x:Name="RTB_Advanced" Margin="3" IsReadOnly="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"/>
                            </Grid>
                        </controls:TabItem>
                        <controls:TabItem x:Name="Tab_FAQ" Header="F.A.Q.">
                            <Grid x:Name="Tab_FAQ_Layout">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition />
                                </Grid.RowDefinitions>
                                <TextBlock x:Name="LB_FAQ1" Text="Got a question about Rage.Mercenary?" Margin="4,2" TextWrapping="Wrap" HorizontalAlignment="Center" />
                                <TextBlock x:Name="LB_FAQ2" Text="The answer may be here..." Margin="4,2" TextWrapping="Wrap" Grid.Row="1" HorizontalAlignment="Center" />
                                <TextBlock x:Name="LB_FAQ3" Text="Select a Question or choose All to display All" Margin="4,2" TextWrapping="Wrap" Grid.Row="2" HorizontalAlignment="Center" />
                                <ComboBox x:Name="CB_FAQ_Questions" SelectionChanged="CB_FAQ_Questions_SelectedIndexChanged" Grid.Row="3" Margin="4,2" />
                                <TextBox x:Name="RTB_FAQ" IsReadOnly="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" Grid.Row="4" Margin="4,2" />
                            </Grid>
                        </controls:TabItem>
                        <controls:TabItem x:Name="Tab_Version" Header="Version Notes">
                            <Grid x:Name="Tab_Version_Layout">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition />
                                </Grid.RowDefinitions>
                                <TextBox x:Name="RTB_Version" IsReadOnly="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" Grid.Row="2" Margin="4,2" />
                                <dataInput:Label x:Name="LB_Version" RenderTransformOrigin="0.474,-14.575" Content="Select a Version or choose All to display all" MinHeight="20" Margin="4,2" HorizontalContentAlignment="Center" />
                                <ComboBox x:Name="CB_Version" VerticalAlignment="Top" SelectionChanged="CB_Version_SelectedIndexChanged" Grid.Row="1" Margin="4,2" />
                            </Grid>
                        </controls:TabItem>
                    </controls:TabControl>
                </Grid>
            </controls:TabItem>
            <controls:TabItem x:Name="Page_01_Basics" Header="Mercenary">
                <ScrollViewer x:Name="SV_Page01" VerticalScrollBarVisibility="Auto" Padding="0">
                    <Grid x:Name="Page_01_Layout" HorizontalAlignment="Stretch" VerticalAlignment="Top">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="29" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="25*" />
                            <ColumnDefinition Width="50*" />
                        </Grid.ColumnDefinitions>

                        <!-- Fight Settings -->
                        <dataInput:Label x:Name="LB_FightSettings" FontWeight="Bold" Content="Fight Settings" d:LayoutOverrides="VerticalAlignment" Grid.ColumnSpan="3" Margin="4" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" />
                        <dataInput:Label x:Name="LB_Latency" Content="Lag (ms):" Grid.Row="1" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.ColumnSpan="2" />
                        <inputToolkit:NumericUpDown x:Name="NUD_Latency" d:LayoutOverrides="VerticalAlignment" Maximum="1000" Value="{Binding Path=Lag, Mode=TwoWay}" Increment="25" Grid.Column="2" Grid.Row="1" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="20" />
                        <dataInput:Label x:Name="LB_React" Content="React (ms):" Grid.Row="2" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.ColumnSpan="2" />
                        <inputToolkit:NumericUpDown x:Name="NUD_React" d:LayoutOverrides="VerticalAlignment" Maximum="1000" Value="{Binding Path=React, Mode=TwoWay}" Increment="25" Grid.Column="2" Grid.Row="2" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="20" />
                        <!-- Cooldown Usage -->
                        <dataInput:Label x:Name="LB_CDCutoff" Content="CDCutoff(s):" Grid.Row="5" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.ColumnSpan="2" />
                        <inputToolkit:NumericUpDown x:Name="NUD_CDCutOff" d:LayoutOverrides="Height" Maximum="60" Value="{Binding CDCutOff, Mode=TwoWay, UpdateSourceTrigger=Default}" Grid.Column="2" Grid.Row="5" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="20" />
                        <dataInput:Label x:Name="LB_BossStartHPPerc" Content="Boss Starting HP%:" d:LayoutOverrides="Height" Grid.Row="3" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.ColumnSpan="2" />
                        <inputToolkit:NumericUpDown x:Name="NUD_BossHP" d:LayoutOverrides="Height" Value="{Binding Mode=TwoWay, UpdateSourceTrigger=Default, Path=BossHPPerc, Converter={StaticResource PercentConverter}}" Increment="20" Grid.Row="3" Grid.Column="2" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="20" />
                        <dataInput:Label x:Name="LB_MercenarySettings" FontWeight="Bold" Content="Cooldown Usage" Grid.ColumnSpan="3" Grid.Row="4" Margin="4" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" />
                        <dataInput:Label x:Name="LB_Aspect" HorizontalAlignment="Stretch" Content="Aspect:" Grid.Row="6" Margin="4,2" VerticalAlignment="Stretch" Grid.ColumnSpan="2" />
                        <ComboBox x:Name="CB_Aspect" SelectedItem="{Binding SelectedAspect, Mode=TwoWay}" Grid.Column="2" Grid.Row="6" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="20">
                            <local:Aspect>Fox</local:Aspect>
                            <local:Aspect>Hawk</local:Aspect>
                            <local:Aspect>None</local:Aspect>
                        </ComboBox>
                        <dataInput:Label x:Name="LB_ViperUsage" HorizontalAlignment="Stretch" Content="Fox Usage:" Grid.Row="7" Margin="4,2" VerticalAlignment="Stretch" Grid.ColumnSpan="2" />
                        <ComboBox x:Name="CB_AspectUsage" SelectedItem="{Binding AspectUsage, Mode=TwoWay}" Grid.Column="2" Grid.Row="7" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="20">
                            <local:AspectUsage>None</local:AspectUsage>
                            <local:AspectUsage>FoxToRun</local:AspectUsage>
                        </ComboBox>
                        <CheckBox x:Name="CK_UseBeastDuringBW" HorizontalAlignment="Stretch" Content="Use Aspect of the Beast during Bestial Wrath" IsChecked="{Binding UseBeastDuringBestialWrath, Mode=TwoWay, UpdateSourceTrigger=Default}" Grid.ColumnSpan="3" Grid.Row="8" Margin="4,2" VerticalAlignment="Stretch" Height="20" />

                    </Grid>
                </ScrollViewer>
            </controls:TabItem>
            <controls:TabItem x:Name="Page_04_Misc" Header="Misc">
                <Grid x:Name="Page_04_Layout">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>

                    <CheckBox x:Name="CK_HideSplGear" Content="Hide Spell Gear *" IsChecked="{Binding HideBadItems_Spl, Mode=TwoWay, UpdateSourceTrigger=Default}" Grid.Row="0" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.ColumnSpan="3" />
                    <CheckBox x:Name="CK_HidePvPGear" Content="Hide PvP Gear *" IsChecked="{Binding HideBadItems_PvP, Mode=TwoWay, UpdateSourceTrigger=Default}" Grid.Row="0" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Padding="4,1,0,0" Grid.ColumnSpan="3" Grid.Column="3" />
                    <CheckBox x:Name="CK_PTRMode" Content="PTR Mode *" HorizontalAlignment="Stretch" IsChecked="{Binding PTRMode, Mode=TwoWay, UpdateSourceTrigger=Default}" Grid.Row="4" Margin="4,2" VerticalAlignment="Stretch" Grid.ColumnSpan="6" />
                    <dataInput:Label x:Name="LB_SurvScale" HorizontalAlignment="Stretch" Content="Survivability Scale:" Grid.Column="0" Grid.Row="2" Margin="4,2" VerticalAlignment="Stretch" Grid.ColumnSpan="3" />
                    <inputToolkit:NumericUpDown x:Name="NUD_SurvScale" HorizontalAlignment="Stretch" Value="{Binding SurvScale, Mode=TwoWay, UpdateSourceTrigger=Default}" Maximum="10" Increment="0.1" DecimalPlaces="1" Grid.Column="3" Grid.Row="2" Margin="4,2" VerticalAlignment="Stretch" Height="20" Grid.ColumnSpan="3" />
                    <CheckBox x:Name="CK_SE_UseDur" Content="Use Duration for Special Effects" IsChecked="{Binding SE_UseDur, Mode=TwoWay, UpdateSourceTrigger=Default}" Grid.Column="0" Grid.Row="3" Margin="4,2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.ColumnSpan="6" />

                    <dataInput:Label x:Name="LB_StatsGraph" VerticalAlignment="Stretch" Content="Stats Graph" FontWeight="Bold" Grid.Row="5" Margin="4" HorizontalAlignment="Stretch" Grid.ColumnSpan="6" />
                    <CheckBox x:Name="CK_StatsAgility" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Content="Agility" Grid.Row="6" Margin="4,2" Grid.ColumnSpan="3" IsChecked="{Binding Path=StatsList[0], Mode=TwoWay}" />
                    <CheckBox x:Name="CK_StatsAP" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Content="Attack Power" Grid.Row="7" Margin="4,2" Grid.ColumnSpan="3" IsChecked="{Binding Path=StatsList[1], Mode=TwoWay}" />
                    <CheckBox x:Name="CK_StatsCrit" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Content="Crit Rating" Grid.Row="8" Margin="4,2" Grid.ColumnSpan="3" IsChecked="{Binding Path=StatsList[2], Mode=TwoWay}" />
                    <CheckBox x:Name="CK_StatsHaste" VerticalAlignment="Stretch" Content="Haste" d:LayoutOverrides="Width" Grid.Row="6" Margin="4,2" HorizontalAlignment="Stretch" Grid.Column="3" Grid.ColumnSpan="3" IsChecked="{Binding Path=StatsList[4], Mode=TwoWay}" />
                    <CheckBox x:Name="CK_StatsHit" VerticalAlignment="Stretch" Content="Hit Rating" d:LayoutOverrides="Width" Grid.Row="8" Margin="4,2" HorizontalAlignment="Stretch" Grid.Column="3" Grid.ColumnSpan="3" IsChecked="{Binding Path=StatsList[3], Mode=TwoWay}" />
                    <CheckBox x:Name="CK_StatsMastery" VerticalAlignment="Stretch" Content="Mastery Rating" d:LayoutOverrides="Width" Grid.Row="7" Margin="4,2" HorizontalAlignment="Stretch" Grid.Column="3" Grid.ColumnSpan="3" IsChecked="{Binding Path=StatsList[5], Mode=TwoWay}" />
                    <dataInput:Label x:Name="LB_StatsRatingToGraph" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Content="Rating to Graph" Grid.Row="9" Margin="4,2" Grid.ColumnSpan="2" />
                    <ComboBox x:Name="CB_CalculationToGraph" VerticalAlignment="Stretch" Grid.Row="9" Margin="4,2" HorizontalAlignment="Stretch" Grid.Column="2" Height="20" Grid.ColumnSpan="4" SelectedItem="{Binding Path=CalculationToGraph, Mode=TwoWay}" />
                    <dataInput:Label x:Name="LB_StatsIncrement" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Content="Increment:" Grid.Row="10" Margin="4,2" Grid.ColumnSpan="2" />
                    <inputToolkit:NumericUpDown x:Name="NUD_StatsIncrement" VerticalAlignment="Stretch" Maximum="5000" Value="{Binding Path=StatsIncrement, Mode=TwoWay}" HorizontalAlignment="Stretch" Grid.Row="10" Margin="4,2" Grid.Column="2" Height="20" />
                    <Button x:Name="BT_StatsGraph" VerticalAlignment="Stretch" Content="Display Stats Graph" Grid.Row="10" Margin="4,2" HorizontalAlignment="Stretch" Height="20" Grid.Column="3" Grid.ColumnSpan="3"  Click="BT_StatsGraph_Click" />
                </Grid>
            </controls:TabItem>
        </controls:TabControl>
    </Grid>
</UserControl>
